var t = require("../../model/emoji_data.js");

Page({
    data: {
        scrollTop: 0,
        current: 1,
        current_scroll: 1
    },
    onLoad: function(a) {
        var e = t.emojisCategories;
        this.setData({
            categories: e,
            currentItems: e[0].data
        });
    },
    handleCopy: function(t) {
        console.log(t);
        var a = t.target.dataset.text;
        wx.setClipboardData({
            data: a,
            success: function(t) {
                wx.showToast({
                    title: "复制成功"
                });
            }
        });
    },
    handleChange: function(t) {
        var a = t.detail, e = a.key;
        console.log(e);
        var r = this.data.categories[e].data;
        this.setData({
            current: a.key,
            currentItems: r
        });
    },
    handleChangeScroll: function(t) {
        var a = t.detail, e = a.key;
        console.log(e);
        var r = this.data.categories[e].data;
        this.setData({
            current_scroll: a.key,
            currentItems: r
        });
    }
});